﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WarnMaster.Master" AutoEventWireup="true" CodeBehind="warn.aspx.cs" Inherits="QunYing.Web.market.warn" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        #shopcart h2
        {
            background: url("images/cart_bg_05.gif") no-repeat scroll right top #AACDED;
            height: 28px;
            line-height: 28px;
        }
        #shopcart h2 strong
        {
            background: url("images/cart_bg_03.gif") no-repeat scroll left top transparent;
            display: block;
            height: 28px;
            padding: 0 20px;
        }
        .cart_table
        {
            -moz-border-bottom-colors: none;
            -moz-border-image: none;
            -moz-border-left-colors: none;
            -moz-border-right-colors: none;
            -moz-border-top-colors: none;
            border-color: #AACDED;
            border-style: solid;
            border-width: 0 3px;
            overflow: hidden;
            padding: 20px 17px 0;
        }
        .round
        {
            background: url("images/cart_bg_11.gif") repeat-x scroll 0 top transparent;
            height: 10px;
            margin-bottom: 10px;
        }
        .lround
        {
            background: url("images/cart_bg_09.gif") no-repeat scroll left top transparent;
            float: left;
            height: 10px;
            width: 10px;
        }
        .rround
        {
            background: url("images/cart_bg_10.gif") no-repeat scroll right top transparent;
            float: right;
            height: 10px;
            width: 10px;
        }
        th, td
        {
            border: 1px solid #AACDED;
            padding-left: 5px;
        }
        .navgo
        {
            text-align: right;
            margin: 10px 0px 10px 0px;
        }
table{margin: 2px;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
      <div class="index_box">
        <h2><span><strong>报警</strong>信息</span></h2>
<asp:GridView ID="GridView1" runat="server" Width="658px" CellPadding="4" 
              ForeColor="#333333" GridLines="None" AutoGenerateColumns="False"
                        OnRowDataBound="GridView1_RowDataBound" 
              DataKeyNames="序号,ICSA编号,告警时间">
                       <RowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="序号" HeaderText="序号" SortExpression="序号">
                                <HeaderStyle Width="30px" />
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="名称" HeaderText="水族箱" SortExpression="名称">
                            <HeaderStyle Width="100px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="告警时间" HeaderText="告警时间" SortExpression="告警时间" 
                                DataFormatString="{0:yyyy-MM-dd HH:mm}">
                                <HeaderStyle Width="125px" />
                            <ItemStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="告警内容" HeaderText="告警内容" SortExpression="告警内容" />
                            <asp:BoundField DataField="告警状态" HeaderText="告警状态" SortExpression="告警状态">
                                <HeaderStyle Width="60px" />
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="详细信息">
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnDetail" runat="server" Text="详细" 
                                        OnClick="btnDetail_Click" CommandArgument='<%# Eval("序号")%>'
                                    />
                                </ItemTemplate>
                                <HeaderStyle Width="60px" />
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:TemplateField>
                        </Columns>
                         <FooterStyle BackColor="#EBF4FB" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#EBF4FB" HorizontalAlign="Right" CssClass="cssPager"  />
                <EmptyDataTemplate>
                    没有报警信息
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#EBF4FB" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    </div></div>
</asp:Content>
